package quq.missq;

import android.app.Activity;
import android.view.View;
import android.widget.Toast;

import com.umeng.analytics.MobclickAgent;

/**
 * Created by River on 7/24/15.
 */
public class BaseActivity extends Activity {

    protected void showToast(String msg) {
        Toast.makeText(this, msg, Toast.LENGTH_SHORT).show();
    }

    public void onBackClick(View v) {
        onBackPressed();
    }

    public void onResume() {
        super.onResume();
        MobclickAgent.onResume(this);
    }

    public void onPause() {
        super.onPause();
        MobclickAgent.onPause(this);
    }
}

